import type { DropdownMixedOption } from "naive-ui/es/dropdown/src/interface"
import type { ApplicationInfo } from "@/core/application/application-info"
import type { ApplicationContent } from "@/core/application/application-content"
import { WindowContent } from "@/core/window/window-content"
import { WindowSize } from "@/core/window/window-size"

export const topBarMenu = new Map<string, DropdownMixedOption[]>([
  [
    "音乐",
    [
      {
        label: "biu-os",
        key: "biu-os"
      }
    ]
  ]
])

export const mainWindow = new WindowContent(
  "main",
  "MainWindow",
  new WindowSize(false, false, true, false, false, 800, 500)
)

export const musicApplicationContent: ApplicationContent = {
  home: "music",
  main: "main",
  windowContents: new Map([[mainWindow.name, mainWindow]])
}

export const musicApplicationInfo: ApplicationInfo = {
  id: "music",
  name: "音乐",
  icon: "music/MusicIcon",
  content: musicApplicationContent,
  topBarMenu: topBarMenu,
  dockMenu: [],
  inDock: true,
  inMainPanel: true
}
